package com.example.dormmanage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("迁入迁出实体类")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Move {

    @ApiModelProperty("id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long moveId;

    @ApiModelProperty("楼宇id")
    private Integer BuildingId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("迁移类型(0->迁入,1->迁出)")
    private Integer type;

    @ApiModelProperty("迁移原因")
    private String reason;

    @ApiModelProperty("迁移时间")
    private String moveTime;

    @ApiModelProperty("审核状态(0->不通过,1->通过,2->待审核)")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT,select = false)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    private LocalDateTime updateTime;
}
